﻿#include "seats.h"
// Get方法实现
int seats::getSeatId() const {
	return seat_id;
}

int seats::getTrainId() const {
	return train_id;
}

std::string seats::getSeatNo() const {
	return seat_no;
}

std::string seats::getSeatType() const {
	return seat_type;
}
// Set方法实现
void seats::setSeatId(int id) {
	seat_id = id;
}

void seats::setTrainId(int id) {
	train_id = id;
}

void seats::setSeatNo(const std::string& no) {
	seat_no = no;
}

void seats::setSeatType(const std::string& type) {
	seat_type = type;
}

// status的get/set已在头文件内实现


